
import request from '@/utils/request'
import URL from '@/api/baseUrl'
export default class Employees {
  /**
   * 获取员工列表
   * @param {} data
   */
  static list (data = {}) {
    return request.get(`${URL.comBasic}/bas-employees/list`,data)
  }
  /**
   * 新增/修改员工
   * @param {} data
   */
  static edit (data = {}) {
    return request.put(`${URL.comBasic}/bas-employees/edit`, data)
  }
    /**
   * 新增/修改员工
   * @param {} data
   */
  static add (data = {}) {
    return  request.post(`${URL.comBasic}/bas-employees/add`, data)
  }
  /**
   * 查看详情
   * @param {} data
   */
  static getInfo (id) {
    return request.get(`${URL.comBasic}/bas-employees/getInfoById/${id}`)
  }
  /**
   * 删除员工
   * @param {} data
   */
  static remove (data) {
    return request.delete(`${URL.comBasic}/bas-employees/remove`, data)
  }
  /**
   * 导出
   * @param {} data
   */
  static export (data) {
    return request.post(`${URL.comBasic}/bas-employees/export`, data, {
      responseType: 'blob'
    })
  }
  /**
   * 启用
   * @param {} data
   */
  static enabled (data) {
    return request.post(`${URL.comBasic}/bas-employees/enabled`, data)
  }
    /**
   * 获取员工列表
   * @param {} data
   */
  static selectList (data = {}) {
    return request.get(`${URL.comBasic}/bas-employees/selectList`,data)
  }
}
